﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MPev
{
    public partial class MPRelControl : UserControl
    {
        public MPRel rel;

        public MPRelControl()
        {
            InitializeComponent();
        }

        private void textBox_TextChanged(object sender, EventArgs e)
        {
            rel.label = textBox.Text;
        }

        private void comboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            rel.type = comboBox.Text;
        }

        public void syncText()
        {
            textBox.Text = rel.label;
            comboBox.Text = rel.type;
        }
    }
}
